
/**
 * @Project : Clion_ProgrammingExercises
 * @File : 1
 * @Author : WangRuoyu 
 * @Date : 2023/5/18 15:07
 */

#include "iostream"

using namespace std;

int main() {
    int m, n, l;
    cin >> m >> n >> l;
    int a[l];
    for (int i = 0; i < l; ++i) {
        a[i] = 0;
    }
    for (int i = 0; i < m; ++i) {
        for (int j = 0; j < n; ++j) {
            int x;
            scanf("%d", &x);
            a[x]++;
        }
    }
    for (int i = 0; i < l; ++i) {
        cout << a[i] << " ";
    }
    return 0;
}